package itdfq.ydd.Structural_Patterns.waiguan;

/**
 * @Author GocChin
 * @Date 2021/4/19 19:51
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class TV {
    private Music music = new Music();
    private Video video = new Video();
    private Zimu zimu = new Zimu();
    public void on(){
        System.out.println("点击播放");
        music.run();
        video.run();
        zimu.run();
    }
    public void off(){
        System.out.println("点击暂停");
        music.shut();
        video.shut();
        zimu.shut();
    }
}
